package com.tchintech.pay.delegate;

import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;

import butterknife.Bind;

/**
 * Created by Administrator on 2017/7/12 0012.
 */

public class CodeDelegate extends AppDelegate {
    @Bind(R.id.iv_paycode)
    ImageView imageView;
    @Bind(R.id.bt_code)
    Button button;
    @Bind(R.id.tv_title)
    TextView textView;
    @Bind(R.id.iv_back)
    ImageView iv_back;
    @Bind(R.id.tv_paytype)
    TextView tv_paytype;


    @Override
    public int getRootLayoutId() {
        return R.layout.activity_code;
    }

    public void setTitle(String str){
        textView.setText(str);
    }


    public ImageView getCodeImage(){
        return imageView;
    }
    public void  setVisible(){
        iv_back.setVisibility(View.VISIBLE);
    }

    public  void setpaytype(String str){
        tv_paytype.setText(str);
    }
}
